package br.com.center.loja.ws.dto;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class AddressDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer number;

	private StreetDTO delegate;

	public AddressDTO() {
		super();
	}

	public AddressDTO(StreetDTO delegate) {
		super();
		this.delegate = delegate;
	}

	public StreetDTO getDelegate() {
		return delegate;
	}

	public String getStreet() {
		return delegate.getName();
	}

	public void setStreet(String street) {
		delegate.setName(street);
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public NeighborhoodDTO getNeighborhood() {
		return delegate.getNeighborhood();
	}

	public void setNeighborhood(NeighborhoodDTO neighborhood) {
		delegate.setNeighborhood(neighborhood);
	}

	public CityDTO getCity() {
		return delegate.getCity();
	}

	public void setCity(CityDTO city) {
		delegate.setCity(city);
	}

	public String getZipCode() {
		return delegate.getZipCode();
	}

	public void setZipCode(String zipCode) {
		delegate.setZipCode(zipCode);
	}

	public String getState() {
		return delegate.getState();
	}

	public void setState(String state) {
		delegate.setState(state);
	}

}
